package ch1.refactors;

class RegularPrice extends Price{

    int getPriceCode(){
        return 0;
    }

    double getCharge(int daysRented){
        double result = 0;
        result += 2;
        if (daysRented > 2) {
            result += (daysRented - 2) * 1.5;
        }
        return result;
    }

}
